<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务记录网站</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>📝 我的任务清单</h1>
        </header>

        <main>
            <section class="input-section">
                <input type="text" id="taskInput" placeholder="输入新任务..." maxlength="100">
                <button id="addTaskBtn">添加任务</button>
            </section>

            <section class="tasks-section">
                <h2>任务列表</h2>
                <ul id="taskList">
                    <!-- 任务项将通过 JavaScript 动态插入 -->
                </ul>
                <p id="emptyMessage">暂无任务，快添加一个吧！</p>
            </section>
        </main>
    </div>

    <script src="script.js"></script>
</body>
</html>